import Vue from 'vue'
import Router from 'vue-router'
import Login from '../pages/login/login.vue'
import Selfhome from '../pages/selfhome/home.vue'
import Selfinfo from '../pages/selfhome/children/selfinfo.vue'
import regist from '../pages/regist/regist'
import registStep2 from '../pages/regist/registStep2'
import registStep3 from '../pages/regist/registStep3'
import forget from '../pages/forget/forget'
import forgetStep2 from '../pages/forget/forgetStep2'
import change from '../pages/change/change'
import showPost from '../pages/selfhome/children/postShow'
import zhaoPinXiangQing from '../pages/selfhome/children/zhaoPinXiangQing'
import consignShow from '../pages/selfhome/children/consignShow'
import weiPeiXiangQing from '../pages/selfhome/children/weiPeiXiangQing'
import yongHuXiaoXi from '../pages/selfhome/children/yongHuXiaoXi'
import xiTongXiaoXi from '../pages/selfhome/children/xiTongXiaoXi'
import xiaoXiFanKui from '../pages/selfhome/children/xiaoXiFanKui'
import newPost from '../pages/selfhome/children/newPost'
import newConsign from '../pages/selfhome/children/newConsign'
Vue.use(Router)

export default new Router({
  routes: [
	{
		path: '/companyPage/change',
		component: change
	  },
	{
		path: '/companyPage/forgetStep2',
		component: forgetStep2
	  },
	{
		path: '/companyPage/forget',
		component: forget
	  },
	{
		path: '/companyPage/registStep3',
		component: registStep3
	  },
	{
		path: '/companyPage/registStep2',
		component: registStep2
	  },
	{
		path: '/companyPage/regist',
		component: regist
	  },
    {
      path: '/',
      component: Login
    },
		{
			path: '/companyPage/home',
			component: Selfhome,
			children: [
				{
					path: 'newConsign',
					component: newConsign,
				},
				{
					path: 'newPost',
					component: newPost,
				},
				{
					path: 'newsBack',
					component: xiaoXiFanKui,
				},
				{
					path: 'systemMessage',
					component: xiTongXiaoXi,
				},
				{
					path: 'yongHuXiaoXi',
					component: yongHuXiaoXi,
				},
				{
					path: 'consignDetail',
					component: weiPeiXiangQing,
				},
				{
					path: 'showConsign',
					component: consignShow,
				},
				{
					path: 'postDetail',
					component: zhaoPinXiangQing,
				},
				{
					path: 'showPost',
					component: showPost,
				},
			{
				path: 'selfinfo',
				component: Selfinfo,
			}, 
			]
		},
  ]
})
